package com.yq.ylmall.acl.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yq.ylmall.model.acl.Menu;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 菜单Mpper接口
 */
@Repository
public interface MenuMapper extends BaseMapper<Menu> {

    int countByParentId(Long id);

    void deleteByIdMenu(Long id);

    List<Menu> selectListByUserId(Long userId);
}
